package cn.jyc.ssm03.dao;

import cn.jyc.ssm03.pojo.MenuList;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MenuListMapper {
    @Select("select * from sys_menus")
    public List<MenuList> getMenu();
    @Select("select * from sys_menus where id in (select mid from sys_role_menu where rid in (SELECT rid FROM sys_user_role where uid=#{uid}))")
    public List<MenuList> getMenu2(Integer uid);
}
